﻿Option Strict On

Imports System.Data
Imports System.Data.Common
Imports DbDataLib
Imports KUeLib.Kontoauszüge

Namespace ServiceDefinitions

    Public MustInherit Class KontoauszugDataService
        Inherits ServiceClass

        Public Sub New(ByVal dataService As DbDataService)
            MyBase.New(dataService)
        End Sub

        Public MustOverride Function GetAlleKontoauszüge() As List(Of Kontoauszug)


        Public MustOverride Function GetKontoauszugById(ByVal id As Integer) As Kontoauszug
        
        Public MustOverride Function Insert(ByVal kontoauszug As Kontoauszug) As Kontoauszug
       
        Public MustOverride Overloads Function Update(ByVal kontoauszug As Kontoauszug) As Integer
          

        Public MustOverride Overloads Function Update(ByVal kontoauszug As Kontoauszug, ByVal updateBinary As Boolean) As Integer
        

        Public MustOverride Overloads Sub SaveBinary(ByVal kontoauszug As Kontoauszug)
            

        Public MustOverride Overloads Sub SaveBinary(ByVal id As Integer, ByVal b() As Byte)
            

        Public MustOverride Sub FillBinary(ByRef kontoauszug As Kontoauszug)
        

        Public MustOverride Function CheckIdExists(ByVal id As Integer) As Boolean
        

        Public MustOverride Overloads Function Delete(ByVal id As Integer) As Integer
        

        Public MustOverride Overloads Function Delete(ByVal kontoauszug As Kontoauszug) As Integer
           

    End Class

End Namespace
